import { get, post } from "../utils/request";

// 注册接口封装
export const reqRegisterAPI = (data) => post("/api/v1/auth/reg", data);
// http://localhost:3009/api/v1/auth/reg

//登录接口
export const reqLoginAPI = (data) => post("/api/v1/auth/login", data);

//获取用户信息接口
export const getUserAPI = () => get("/api/v1/users/info");

//修改用户信息接口
export const editUserAPI = (data) => post("/api/v1/users/change_info", data);

//修改用户密码接口
export const editUserPwdAPI = (data) => post("/api/v1/users/change_pwd", data);
